<!DOCTYPE html>
<html>

    <head>
        <title>{$category.name} {$category.seo_title} {$site_info.site_name|default=''}</title>
        <meta name="keywords" content="{$category.seo_keywords},{$site_info.site_seo_keywords|default=''}"/>
        <meta name="description" content="{$category.seo_description},{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
    <taglib name="app\portal\taglib\Portal"/>
</head>

<body id="body">

    <!-- header -->
<include file="public@header"/>

<!-- nav -->
<include file="public@nav"/>

<!-- banner -->
<include file="public@banner"/>


<!-- content内容区 -->
<div id="content">
    <div class="width1200 content_li">
        <div class="title">
            <table>
                <td>
                    <div class="li img sprite left"></div>
                </td>
                <td class="center">
                    <h3>{$category.name}</h3>
                </td>
                <td>
                    <div class="li img sprite  right"></div>
                </td>
            </table>
        </div>
        <php>
            $where=[
            'post.create_time'=>['egt',0]
            ];
            $page=[
            'list_rows'=>10,
            'next'=>'下一页',
            'prev'=>'上一页'
            ];
        </php>
        <div class="cont">
            <div class="overflow">
                <div class="col-xs-9 col-sm-9" style="padding-right: 15px;">
                    <div class="lists">
                        <portal:articles item="vo" where="$where" order="post.create_time DESC" page="$page"
                                         relation="categories"
                                         categoryIds="$category.id"
                                         returnVarName="articles_data">
                            <div class="list">
                                <div class="list_name">
                                    {$vo.post_title}
                                </div>
                                <div class="list_cont overflow">
                                    <div class="left list_cont_img">
                                        <if condition="empty($vo.more.thumbnail)">
                                            <img src="__TMPL__/public/assets/images/default_tupian4.png"
                                                 class="img-responsive" alt="{$vo.post_title}"/>
                                            <else/>
                                            <img src="{:cmf_get_image_url($vo.more.thumbnail)}"
                                                 class="img-responsive" alt="{$vo.post_title}"/>
                                        </if>
                                    </div>
                                    <div class="right">
                                        <p class="list_cont_p">{$vo.post_excerpt}</p>
                                        <div class="list_cont_more">
                                            <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category['id']))}" class="yellow_bg right hover">查看详情</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </portal:articles>
                        <ul class="pagination"><page/></ul>
                    </div>
                </div>
                <div class="col-xs-3 col-sm-3">

                    <widget name="hottest_articles">
                        <div class="col-3-hot">
                            <div class="list_name">
                                {$widget.title}
                            </div>
                            <div class="col-3-lists">
                                <php>
                                    $hot_articles=[];
                                </php>
                                <portal:articles limit="5" order="post.post_hits DESC"
                                                 categoryIds="$widget.vars.hottest_articles_category_id">                                           
                                    <a title="{$vo.post_title}" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}" class="col-3-list">
                                        <span class="num">{$key+1}</span>                                               
                                        {$vo.post_title}
                                    </a>
                                </portal:articles>
                            </div>
                        </div>
                    </widget>

                    <widget name="last_articles" >
                        <div class="col-3-hot">
                            <div class="list_name">
                                {$widget.title}
                            </div>
                            <div class="col-3-lists">
                                <php>
                                    $hot_articles=[];
                                </php>
                                <portal:articles limit="5" order="post.published_time DESC"
                                                 categoryIds="$widget.vars.last_articles_category_id">                                           
                                    <a title="{$vo.post_title}" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}" class="col-3-list">
                                        <span class="num">{$key+1}</span>                                               
                                        {$vo.post_title}
                                    </a>
                                </portal:articles>
                            </div>
                        </div>
                    </widget>

                </div>
            </div>


        </div>
    </div>

</div>
<!-- 固定窗口 -->
<include file="public@fixed"/>	
<!-- footer -->
<include file="public@footer"/>	
<!-- script -->
<include file="public@script"/>	

</body>
</html>